/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.domain;


import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

@ApiModel(value = "用户登录日志", description = "登录日志实体类")
public class SigninLog extends BaseEntity {

    @ApiModelProperty(value = "登录账号", name = "signinName", required = true)
    private String signinName;

    @ApiModelProperty(value = "登录IP地址", name = "ipaddr", required = true)
    private String ipaddr;

    @ApiModelProperty(value = "登录地点", name = "signinLocation" )
    private String signinLocation;

    @ApiModelProperty(value = "浏览器类型", name = "browser", required = true)
    private String browser;

    @ApiModelProperty(value = "操作系统", name = "os" )
    private String os;

    @ApiModelProperty(value = "操作状态: 0正常 1异常", name = "status", required = true)
    private Integer status;

    @ApiModelProperty(value = "提示消息", name = "msg", required = true)
    private String msg;

    @ApiModelProperty(value = "访问时间", name = "signinTime", required = true)
    private Date signinTime;

    @ApiModelProperty(value = "部门名称", name = "deptName", required = true)
    private String deptName;

    @ApiModelProperty(value = "公司名称", name = "orgName", required = true)
    private String orgName;

    public String getSigninName() {
        return signinName;
    }

    public void setSigninName(String signinName) {
        this.signinName = signinName;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getSigninLocation() {
        return signinLocation;
    }

    public void setSigninLocation(String signinLocation) {
        this.signinLocation = signinLocation;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getSigninTime() {
        return signinTime;
    }

    public void setSigninTime(Date signinTime) {
        this.signinTime = signinTime;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("signinName", getSigninName())
                .append("ipaddr", getIpaddr())
                .append("signinLocation", getSigninLocation())
                .append("browser", getBrowser())
                .append("os", getOs())
                .append("status", getStatus())
                .append("msg", getMsg())
                .append("signinTime", getSigninTime())
                .toString();
    }

}
